/* 通用样式文件 */

/* 搜索和筛选样式 */
.search-section {
    margin-bottom: 32px;
}

.search-box {
    display: flex;
    align-items: center;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    color: #1F2937;
}

.search-input::placeholder {
    color: #9CA3AF;
}

.search-btn {
    background: none;
    border: none;
    color: #6B7280;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
}

.search-btn:hover {
    background-color: #F3F4F6;
    color: #2A5CAA;
}

.filter-options {
    display: flex;
    gap: 12px;
    align-items: center;
}

.filter-select {
    padding: 8px 12px;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    background: #FFFFFF;
    font-size: 14px;
    color: #1F2937;
    cursor: pointer;
    transition: border-color 0.2s;
}

.filter-select:focus {
    outline: none;
    border-color: #2A5CAA;
}

.clear-btn {
    padding: 8px 16px;
    background: #F3F4F6;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    color: #6B7280;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.clear-btn:hover {
    background: #E5E7EB;
    color: #374151;
}

/* 统计卡片样式 */
.stats-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #2A5CAA;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: #6B7280;
    font-weight: 500;
}

/* 竞赛展示区域 */
.competitions-section {
    margin-bottom: 32px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 10px;
}

.view-options {
    display: flex;
    gap: 8px;
}

.view-btn {
    padding: 8px;
    background: #F3F4F6;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    color: #6B7280;
    cursor: pointer;
    transition: all 0.2s;
}

.view-btn.active,
.view-btn:hover {
    background: #2A5CAA;
    color: #FFFFFF;
    border-color: #2A5CAA;
}

/* 加载状态样式 */
.loading-container {
    text-align: center;
    padding: 60px 20px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #E5E7EB;
    border-top: 3px solid #2A5CAA;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: #6B7280;
    font-size: 14px;
    margin: 0;
}

/* 无结果样式 */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #6B7280;
}

.no-results h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 16px 0 8px;
    color: #374151;
}

.no-results p {
    font-size: 14px;
    margin: 0;
}

/* 通用按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    border: none;
}

.btn-primary {
    background: #2A5CAA;
    color: #FFFFFF;
}

.btn-primary:hover {
    background: #1e4788;
}

.btn-secondary {
    background: #F3F4F6;
    color: #6B7280;
    border: 1px solid #E5E7EB;
}

.btn-secondary:hover {
    background: #E5E7EB;
    color: #374151;
}

/* 通用卡片样式 */
.card {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: #1F2937;
    margin: 0 0 16px 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .stats-section {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .filter-options {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        flex-direction: column;
        gap: 12px;
    }
}
